package cn.huolabao.service;

import cn.huolabao.common.core.utils.R;
import cn.huolabao.dto.UserDetailDto;
import cn.huolabao.model.SysUser;
import cn.huolabao.vo.portal.UserNavVo;
import cn.huolabao.vo.portal.UserPortalInfoVo;
import cn.huolabao.vo.system.UserVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysUserService extends IService<SysUser>{


    UserDetailDto getUserInfo(SysUser sysUser);

    R login(String username, String password);

    UserPortalInfoVo getUserPortalInfo(String username);

    SysUser selectUserByUserName(String username);

    List<UserNavVo> getUserPortalNav(String username);

    Page<SysUser> selectUserList(Page<SysUser> sysUserPage, SysUser sysUser);

    boolean addUser(UserVo userVo);
}
